package com.mes.cloud.dto;

import com.mes.cloud.util.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * <bme_bc_pickmap基础表>
 *
 * @author xhy
 * @version 1.0
 * @date 2019/05/09 16:00
 */
@ApiModel(value = "BmeBcPickmapDTO", description = "BcPickmap信息")
@Data
public class BmeBcPickmapDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @NotNull
    @ApiModelProperty(value = "编号", dataType = "String")
    @ExcelAttribute(name = "编号", column = "A")
    private String id;

    @ApiModelProperty(value = "启用", dataType = "Long")
    @ExcelAttribute(name = "启用", column = "B")
    private Long isEnable;
    /**
     * 状态：0=普通，1=禁用
     */
    @ApiModelProperty(value = "状态0=普通，1=禁用", dataType = "Long")
    @ExcelAttribute(name = "状态", column = "C")
    private Long status;
    /**
     * 名称
     */
    @NotNull
    @ApiModelProperty(value = "名称", dataType = "String")
    @ExcelAttribute(name = "名称", column = "D")
    private String name;
    /**
     * 分类
     */
    @ApiModelProperty(value = "分类", dataType = "String")
    @ExcelAttribute(name = "分类", column = "E")
    private String type;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String")
    @ExcelAttribute(name = "备注", column = "F")
    private String ds;
    /**
     * 取值BC
     */
    @NotNull
    @ApiModelProperty(value = "取值BC", dataType = "String")
    @ExcelAttribute(name = "取值BC", column = "G")
    private String pickbc;
    /**
     * 取值BC的名称
     */
    @NotNull
    @ApiModelProperty(value = "取值BC的名称", dataType = "String")
    @ExcelAttribute(name = "取值BC的名称", column = "H")
    private String pickname;
    /**
     * 赋值字段
     */
    @NotNull
    @ApiModelProperty(value = "赋值字段", dataType = "String")
    @ExcelAttribute(name = "赋值字段", column = "I")
    private String setfield;
    /**
     * 取字段
     */
    @NotNull
    @ApiModelProperty(value = "取字段", dataType = "String")
    @ExcelAttribute(name = "取字段", column = "J")
    private String getfield;
    /**
     * 过滤条件
     */
    @ApiModelProperty(value = "过滤条件", dataType = "String")
    @ExcelAttribute(name = "过滤条件", column = "K")
    private String condition;
    /**
     * 取值主键
     */
    @ApiModelProperty(value = "取值主键", dataType = "String")
    @ExcelAttribute(name = "取值主键", column = "O")
    private String getFieldPK;
    /**
     * 显示字段
     */
    @ApiModelProperty(value = "显示字段", dataType = "String")
    @ExcelAttribute(name = "显示字段", column = "P")
    private String getFieldShow;
    /**
     * 父编号
     */
    @ApiModelProperty(value = "父编号", dataType = "String")
    @ExcelAttribute(name = "父编号", column = "Q")
    private String pid;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", dataType = "String")
    @ExcelAttribute(name = "创建人", column = "R")
    private String crtby;
    /**
     * 创时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @ExcelAttribute(name = "创建时间", column = "S")
    private Timestamp crtdate;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", dataType = "String")
    @ExcelAttribute(name = "修改人", column = "T")
    private String updby;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", dataType = "Date")
    @ExcelAttribute(name = "修改时间", column = "U")
    private Timestamp upddate;

    /**
     * code
     */
    @NotNull
    @ApiModelProperty(value = "code", dataType = "String")
    private String code;

    /**
     * 级联父pickmap字段
     */
    @NotNull
    @ApiModelProperty(value = "级联父pickmap字段", dataType = "String")
    private String cascadeParentField;


    /**
     * 级联字段
     */
    @NotNull
    @ApiModelProperty(value = "级联字段", dataType = "String")
    private String cascadeField;

    /**
     * packmap_parent_id
     */
    @NotNull
    @ApiModelProperty(value = "packmap_parent_id", dataType = "String")
    private String packmapParentId;


}